import request from '@/utils/request'
import { Result, DeepRequired } from '../../interface'

/**
 * 根据教育经历id查找教育经历
 * /education/findByEducationId/{id}
 */
export function getEducationFindByEducationIdById(
  params: GetEducationFindByEducationIdByIdParams,
) {
  return request.get<DeepRequired<Result>>(
    `/education/findByEducationId/${params.id}`,
  )
}

interface GetEducationFindByEducationIdByIdParams {
  id: number
}
